/*
 *  ImageIO.h
 *  MantuPlay
 *
 *  Created by Markus Sintonen on 19.9.2009.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef __IMAGEIO__
#define __IMAGEIO__

const CFStringRef kUTTypePNG = CFSTR("public.png");
const CFStringRef kUTTypeJPEG = CFSTR("public.jpeg");

typedef struct CGImageDestination *CGImageDestinationRef;


//CGImageDestinationRef CGImageDestinationCreateWithURL(CFURLRef url, CFStringRef type, size_t count, CFDictionaryRef options);
//void CGImageDestinationAddImage(CGImageDestinationRef idst, CGImageRef image, CFDictionaryRef properties);
//bool CGImageDestinationFinalize(CGImageDestinationRef idst);

typedef CGImageDestinationRef (*t_CGImageDestinationCreateWithURL)(CFURLRef url, CFStringRef type, size_t count, CFDictionaryRef options);
t_CGImageDestinationCreateWithURL CGImageDestinationCreateWithURL = (t_CGImageDestinationCreateWithURL)0x315f9490;

typedef void (*t_CGImageDestinationAddImage)(CGImageDestinationRef idst, CGImageRef image, CFDictionaryRef properties);
t_CGImageDestinationAddImage CGImageDestinationAddImage = (t_CGImageDestinationAddImage)0x315e796c;

typedef bool (*t_CGImageDestinationFinalize)(CGImageDestinationRef idst);
t_CGImageDestinationFinalize CGImageDestinationFinalize = (t_CGImageDestinationFinalize)0x315e87cc;

#endif